//
//  DevicePlatform.h
//  BIBILILI
//
//  Created by juwangkeji on 2018/7/13.
//  Copyright © 2018年 WTF. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DevicePlatform : NSObject
#define __KNewSize(pxSize) [[DevicePlatform shareDevicePlatform] translationSize:pxSize]
#define __kNewWidth(pxSize) [[DevicePlatform shareDevicePlatform] translatWidth:pxSize]
#define __kNewHeight(pxSize) [[DevicePlatform shareDevicePlatform] translatHeight:pxSize]
#define __kNewRealHeight(pxSize) [[[DevicePlatform shareDevicePlatform] translatRealHeight:pxSize]

typedef NS_ENUM(NSInteger,DeviceType) {
    
    Unknown = 0,
    Simulator,
    IPhone_1G,          //基本不用
    IPhone_3G,          //基本不用
    IPhone_3GS,         //基本不用
    IPhone_4,           //基本不用
    IPhone_4s,          //基本不用
    IPhone_5,
    IPhone_5C,
    IPhone_5S,
    IPhone_SE,
    IPhone_6,
    IPhone_6P,
    IPhone_6s,
    IPhone_6s_P,
    IPhone_7,
    IPhone_7P,
    IPhone_8,
    IPhone_8P,
    IPhone_X,
};
+(instancetype)shareDevicePlatform;
-(DeviceType)deviceType;
- (CGFloat)translationSize:(CGFloat)pxSize;
- (CGFloat)translatWidth:(CGFloat)width;
- (CGFloat)translatHeight:(CGFloat)height;
@end
